package org.nt4b.schemadoc.webgui;

import java.io.Serializable;

import javax.faces.event.ActionEvent;

import org.apache.myfaces.custom.fileupload.UploadedFile;


public class FileUploadBean implements Serializable {
    
    private static final long serialVersionUID = -9068561832138409913L;
    
    private UploadedFile file;
    
    public UploadedFile getFile() {
        return file;
    }
    
    public void setFile(final UploadedFile file) {
        this.file = file;
    }
    
    public void upload(final ActionEvent event) {
        if (file != null) {
            System.out.println(file.getName());
        }
    }
    
}
